package ywpt.service.client;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.DeviceParts;

public interface DevicePartsService {

	public abstract DeviceParts getDevicePartsById(Long id);

	public abstract String CreateCode(Long deviceId);

	public abstract void saveDeviceParts(DeviceParts deviceParts, Long deviceId);

	public abstract void updateDeviceParts(DeviceParts deviceParts,
			Long deviceId);

	public abstract void removeDeviceParts(Long id);

	public abstract List<DeviceParts>  getDeviceParts(DetachedCriteria query);
}
